﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Linq;

namespace PicasaManager
{
    public class GoogleMediaThumbnail
    {
        public string Url { get; set; }
        public int Width { get; set; }
        public int Height { get; set; }

        public static GoogleMediaThumbnail FromXElement(XElement element)
        {
            GoogleMediaThumbnail media = new GoogleMediaThumbnail();
            media.Url = element.Attribute("url").Value;
            media.Height = Convert.ToInt32(element.Attribute("height").Value);
            media.Width = Convert.ToInt32(element.Attribute("width").Value);
            return media;
        }
    }


}
